package com.guli.serviceBase.Entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zxc
 * @date 2023/03/28 14:07
 **/
// 自定义异常类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GuliExcepiton extends RuntimeException{
    @ApiModelProperty(value = "状态码")
    public Integer code;

    @ApiModelProperty(value = "响应信息")
    public String msg;

//    @Override
//    public String toString() {
//        return "GuliExcepiton{" +
//                "code=" + code +
//                ", msg='" + msg + '\'' +
//                '}';
//    }
}
